package design_pattern.template;

/**
 * Created by WeiDingKuo on 2017/10/26 14:28
 */
public class TemplateImpl2 extends AbstractTemplate {
    @Override
    protected void method1() {
        System.out.println("子类2的方法1");
    }

    @Override
    protected void method2() {
        System.out.println("子类2的方法2");
    }

    //覆盖钩子方法，改变父类操作流程
    @Override
    protected boolean hookMethod() {
        return false;
    }
}
